package com.authine.cloudpivot.ext.dto;

import com.authine.hermes.app.launcher.org.v2.SelectionSearchType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassName OrgDTO
 * @Description: TODO
 * @Author fj
 * @Date 2021/11/12
 * @Version V1.0
 **/
@Data
@Schema(description = "获取组织树:选人控件 入参")
public class OrgDTO {
    @Schema(description = "应用appCode")
    private String appCode;
    @Schema(description = "keyWord 查询关键字")
    private String keywork;
    @Schema(description = "登录用户id")
    private String userId;
    @Schema(description = "查询的部门id几个，多个用逗号")
    String deptIds;
    @Schema(description = "组织配置Id")
    String orgId;
    @Schema(description = "剔除的组织配置Id")
    String excludeOrgId;
    @Schema(description = "剔除的部门ids")
    String excludeDeptIds;
    @Schema(description = "剔除的用户ids")
    String excludeUserIds;
    @Schema(description = "是否只过滤出自维护组织，true-只查询自维护组织，false-不过滤")
    Boolean isFilterSelfMaintenance;
    @Schema(description = "simple 标准选人, selfmaintain 自维护, exclude_child 一旦有排除部门/组织的情况下其下级部门与组织都不可选")
    String strategy;
    @Schema(description = "1: 所有(ALL)， 2：部门(DEPARTMENT)，3：用户(USER)")
    private SelectionSearchType searchType;
    @Schema(description = "第几页，从1开始")
    Integer pageNum;
    @Schema(description = "每页大小")
    Integer pageSize;
    @Schema(description = "resourceCode")
    String resourceCode;
    @Schema(description = "目标组织id")
    String targetOrgId;
}
